package com.game.simplegame.creature;

import com.game.simplegame.world.World;

/**
 * Created by Administrator on 2017-04-18.
 */
public class MiningStatus implements ICreatureStatus {

    @Override
    public void update(long dtSec, Creature creature, World world) {
        WorkMan workMan = (WorkMan)creature;
        workMan.addEnergy(workMan.getMiningEnergyCost());
        System.out.println("mining");
    }

    @Override
    public void onDisActive(Creature creature,World world) {

    }

    @Override
    public void onActive(Creature creature,World world) {

    }
}
